package model

import "grpc/user/global"

type SysUser struct {
	ID        string `gorm:"primarykey;"`
	Username  string
	Password  string
	Status    int64
	CreatedAt int64
	UpdatedAt int64
}

func (su *SysUser) Insert() error {
	err := global.PgSqlDB.Create(&su).Error
	return err
}

func (*SysUser) TableName() string {
	return "sys_user"
}
